import {
    STATUS_SUCCESS_COLOR,
    STATUS_FAIL_COLOR,
    STATUS_WARNING_COLOR
} from "./color.config";

/**
 * 巡检结果
 */
export const INSPECTION_RESULT = [{
    label: '正常',
    value: 1,
    color: STATUS_SUCCESS_COLOR
}, {
    label: '异常',
    value: 2,
    color: STATUS_FAIL_COLOR

}, ];

// 异常处理办法
export const INSPECTION_HANDLE_METHOD = [{
    label: '限期整改',
    value: 1,
}, {
    label: '转工单',
    value: 2,
}, ];
// 整改状态
export const INSPECTION_RECTIFY_STATUS = [{
        label: '超时未整改',
        value: -1,
        color: STATUS_FAIL_COLOR,

    },
    {
        label: '待整改',
        value: 0,
        color: STATUS_WARNING_COLOR,

    }, {
        label: '已整改',
        value: 1,
        color: STATUS_SUCCESS_COLOR,

    },
];
// 巡检计划
export const INSPECTION_TASK_STATE = [{
    label: '待巡检',
    value: 0,
    color: STATUS_WARNING_COLOR,

}, {
    label: '已超时',
    value: 1,
    color: STATUS_FAIL_COLOR,

}, ]
// 任务状态


export const INSPECTION_HANDLE_METHOD_MAP = wx.$_.keyBy(INSPECTION_HANDLE_METHOD, 'value');
export const INSPECTION_RESULT_MAP = wx.$_.keyBy(INSPECTION_RESULT, 'value');
export const INSPECTION_RECTIFY_STATUS_MAP = wx.$_.keyBy(INSPECTION_RECTIFY_STATUS, 'value');
export const INSPECTION_TASK_STATE_MAP = wx.$_.keyBy(INSPECTION_TASK_STATE, 'value');